package cn.edu.cqytxy;

import java.util.Scanner;

public class Eg2 {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {

        System.out.print("输入一个数，判断年份是否是闰年：");
        int i = scanner.nextInt();
        if ((i % 400 == 0) || (i % 4 == 0 && i % 100 != 0)) {
            System.out.print("这个年份是闰年");
        }else {
            System.out.print("这个年份不是闰年");
        }
    }
}
